#include "StdAfx.h"
#include "Client.h"


Client::Client(void)
{
	ShapeA = NULL;
	ShapeB = NULL;
}


Client::~Client(void)
{
	delete ShapeA;
	delete ShapeB;
}

Client::Client(AbstractFact *creatorA, AbstractFact *creatorB)
{
	ShapeA = creatorA->CreateShape();
	ShapeB = creatorB->CreateShape();	
}

void Client::Draw()
{
	if (ShapeA != NULL)
		ShapeA->Draw();
	if (ShapeB != NULL)
		ShapeB->Draw();
}